﻿@using BonjourQuotation.UI.Models.SetupModel
@model SetupTechTypesGridViewModel
@if(Model.MenuSetupTechDetailView)
{ 
{
    ViewBag.Title = "Setup TechTypes";
    Layout = "~/Views/Shared/_Layout.cshtml";
    @Scripts.Render("~/Scripts/UIScript/Setup/TechType.js")
    @Scripts.Render("~/Scripts/bootstrap-formhelpers.min.js")
    @Styles.Render("~/Content/bootstrap-formhelpers.min.css")
}
<div id="AddNewTechTypeDiv" style="display:none;"></div>
<div class="container">
    <div class="FormsDiv" id="FormsDiv">
        <h1>Setup Tech Detail</h1>
        <div class="FormDiv800">
            <div id="AutoCompleteDiv" style="text-align:left; display: none; z-index: 999999 !important;"></div>
            <div style="width: 794px; height: 98px; margin: auto; margin-left: -5px;">
                <div class="pull-left" style="margin-bottom: 15px;">
                    <div class=" col-lg-5">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.TechTypeCodeText)</span>
                            @Html.TextBoxFor(model => model.TechTypeCodeText, new { @class = "table_inputs_SmallPadding2 inpputgr form-control QuotaTxtComplete" })
                        </div>
                    </div>
                    <div class=" col-lg-7">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.TechTypeDescriptionText)</span>
                            @Html.TextBoxFor(model => model.TechTypeDescriptionText, new { @class = "table_inputs_SmallPadding2 inpputgr form-control QuotaTxtComplete" })
                        </div>
                    </div>
                </div>
                <div class="pull-left" style="margin-bottom: 15px;">
                    <div class=" col-lg-3">
                        <div class="input-group">
                            <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.ActiveSearch)</span>
                            @Html.DropDownListFor(model => model.IsActiveSearch, new SelectList(Model.ActiveSearch, "Value", "Text"), "Select", new { @class = "table_inputs_SmallPadding2 inpputgr form-control" })
                        </div>
                    </div>
                    <div style="margin-right: 15px; padding-top: 4.5px;">
                        <button class="btn14 btn50" style="float:right;" type="button" id="TechTypeSearchBtn">Search</button>
                        @if(Model.MenuSetupTechDetailEdit)
                        { 
                            <button class="btn14 btn120" style="margin-right:30px; float:right;" type="button" onclick="AddNewTechType()">Add New Tech Detail</button>  
                        }
                        else 
                        { 
                            <button class="btn14 btn120" style="margin-right:30px; float:right;" type="button" disabled="disabled" onclick="AddNewTechType()">Add New Tech Detail</button>
                        }
                    </div>
                </div>
            </div>
            <div class="Lines760"></div>
            <div id="SetupTechTypeGrid"></div>
        </div>
    </div>
</div>
}
else
{
    <div class="container">
        <div class="FormsDiv" id="FormsDiv">
            <h1>You Have Not permission for this page</h1>
        </div>
    </div>
} 






